import request from '@/utils/request'

// 查询设备引脚业务列表
export function listGpiobiz(query) {
  return request({
    url: '/business/gpiobiz/list',
    method: 'get',
    params: query
  })
}

// 查询设备引脚业务详细
export function getGpiobiz(id) {
  return request({
    url: '/business/gpiobiz/' + id,
    method: 'get'
  })
}

// 新增设备引脚业务
export function addGpiobiz(data) {
  return request({
    url: '/business/gpiobiz',
    method: 'post',
    data: data
  })
}

// 修改设备引脚业务
export function updateGpiobiz(data) {
  return request({
    url: '/business/gpiobiz',
    method: 'put',
    data: data
  })
}

// 删除设备引脚业务
export function delGpiobiz(id) {
  return request({
    url: '/business/gpiobiz/' + id,
    method: 'delete'
  })
}

// 导出设备引脚业务
export function exportGpiobiz(query) {
  return request({
    url: '/business/gpiobiz/export',
    method: 'get',
    params: query
  })
}